/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac3.client.gui.model;

import edu.uoc.tdp.pac3.bo.IIncidenciaBO;
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.swing.ComboBoxModel;

/**
 * Extensio del Abstract model que implementa metodes necessaris per el ComboBoxModel
 * @author Gerard
 */
public abstract class AbstractModelComboBox<S extends Serializable> extends AbstractModel<S> implements ComboBoxModel{
    
    private S bean;

    public AbstractModelComboBox(IIncidenciaBO bo) throws RemoteException {
        super(bo);
    }

    public AbstractModelComboBox() {
    }
    
    

    public void setSelectedItem(Object o) {
        bean = (S) o;
    }

    public Object getSelectedItem() {
        return bean;
    }
    
}
